<template>
	<view>
		<c-login @enter="enterHome" :isTokenInvalid="isTokenInvalid"></c-login>
	</view>
</template>
<script>
	import {
		mapGetters
	} from 'vuex';
	export default {
		name: 'authorize',
		components: {},
		data() {
			return {
				isTokenInvalid: false,
			};
		},
		watch: {},
		computed: {
			...mapGetters('common', ['_enterUrl']),
		},
		methods: {
			enterHome() {
				console.log('_enterUrl', this._enterUrl)
				uni.reLaunch({
					url: this._enterUrl
				});
			},
		},
		created() {},
		mounted() {},
		onLoad(e) {
			this.isTokenInvalid = e.invalid
		}
	};
</script>
<style lang="scss" scoped>
</style>
